package api

import "github.com/gin-gonic/gin"

// http controller handlerfunc
func HandlerDemo(c *gin.Context) {
	// 获取URL查询参数
	name := c.Query("name")
	age := c.Query("age")
	c.JSON(200, gin.H{
		"name": name,
		"age":  age,
	})
}
